home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Wayzata's Best of Shareware PC/Windows 1
/
Wayzata's Best of Shareware for PC-Windows - Release 1 - Wayzata Technology (1993).iso
/
mac
/
DOS
/
PRINTERS
/
PSCRIPT
/
PSCRIPT.TXT
< prev
next >
Wrap
Text File
|
1992-05-20
|
2KB
|
45 lines
Pscript is a utility to print Paradox scripts, from within
Paradox.It works from a table, and creates a DOS .BAT file
containing print commands. I use a utility called Laserlst, from
PC Magazine, but the DOS TYPE command works as well, and I think
most "pretty-printing"utilities should work, too. The main
concern is that they must not be TSRs loaded after Paradox,
because of Paradox's memory management.
I built Pscript because I couldn't find any way to print
batches of Paradox scripts from within Paradox. You can always
print one at a time, in the script editor, but that is annoying.
Pscript allows you to select your directory, and will create a
file called Pstbl.db if it is not already there. Pscript then
builds a list of the scripts in your directory and displays them
to you. Mark the ones you want to print with F6, and F2 to save
the list. The utility then removes the unmarked ones,creates
Scrprint.bat, and then executes it. To suit your site, modify
the CALC in the PRT() proc near the end of the listing. The list
of printed scripts is retained until the next time you run
Pscript, so you can run Scrprint.bat from DOS anytime. Also, you
have the option from Pscript to re-use the previous set of files.
I had to restrict Pscript from listing and printing itself,
because Windows wants SHARE loaded to run Paradox, causing
sharing violations if Pscript writes a .BAT which tries to access
Pscript.sc. If you don't run Paradox under Windows, you can
modify the Query in GetList(), by removing the NOT Pscript
restriction. The original copy of Pscript, with its .F file,
should be in a directory called PDOX. If you put it anywhere
else, you should change the first part of GetList(), which copies
the table from there into your current directory.
In terms of enhancements, I am toying with the notion of
making file selection date sensitive, to select only files newer
than an input date. I have also put a SETKEY into my INIT script
which calls Pscript from Alt-S.
Pscript is based on VcPgm.Sc by Martin Rudy, in a book called
Paradox 3.5 Power Programming Techniques, both of which I find
very useful (the script and book, that is!). I am starting out in
developing Paradox routines, so Pscript is freeware, use and
enjoy, and I appreciate any feedback.
Colin Campbell, Information Systems Consulting
9409 - 123 Avenue, Grande Prairie, Alberta T8V 5Y4
Voice/Fax (403)532-6159